package com.chuangjiangx.member.basic.ddd.application.command;

/**
 * Created by chuangjiangzqq on 2018/9/15.
 */
public enum AIFaceVideoType {

    /**
     * AI人脸活体检测视频类型
     */
    SHAKE_HEAD("SHAKE_HEAD"),
    IMAGE_URL("BLINK"),
    OPEN_MOUSE("OPEN_MOUSE");

    public final String value;

    AIFaceVideoType(String value) {
        this.value = value;
    }

    public static AIFaceVideoType getType(String value) {
        if (value.equals(SHAKE_HEAD.value)) {
            return SHAKE_HEAD;
        }
        if (value.equals(IMAGE_URL.value)) {
            return IMAGE_URL;
        }
        if (value.equals(OPEN_MOUSE.value)) {
            return OPEN_MOUSE;
        }
        return null;
    }


}
